package com.colin.app.fragment.example;

import com.colin.app.app.AppActivity;
import com.colin.app.app.BasePresenterImpl;
import com.colin.app.bean.DemoBean;

import java.util.List;

/**
 * Created by Colin on 2017/1/15.
 */

public class ExamplePresenterImpl extends BasePresenterImpl implements ExampleContract.ExamplePresenter {

    private ExampleContract.ExampleView mExampleView;
    private ExampleContract.ExampleModel mExampleModel;

    public ExamplePresenterImpl(AppActivity mAppActivity, ExampleContract.ExampleView mExampleView,int fragment_id){
        super(mAppActivity,mExampleView);
        this.mExampleView = mExampleView;
        this.mExampleModel = new ExampleModelImpl(fragment_id);


    }

    @Override
    public List<DemoBean> getItemList() {
        return mExampleModel.getItemList(mAppActivity);
    }
}
